package vn.com.epi.re.tools;

import java.io.IOException;

import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;

import vn.com.epi.re.ApplicationContext;

public class SystemUtils {

    public static void deleteHdfsDir(String directory) throws IOException {
        FileSystem fs = ApplicationContext.get().getFileSystem();
        Path path = new Path(directory);
        if (fs.exists(path))
            fs.delete(path, true);
    }
    
}
